package com.xbongbong.workflow.domain.entity.ext;

import com.alibaba.fastjson.JSONArray;
import com.xbongbong.paas.domain.entity.ext.FieldPermissionEntityExt;
import com.xbongbong.workflow.domain.entity.WorkflowTaskNodeEntity;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author chenpeng
 * @version 1.0
 * @date 2021-05-20 10:18
 * @description
 */
@Getter
@Setter
public class WorkflowTaskNodeEntityExt extends WorkflowTaskNodeEntity {
    
    private static final long serialVersionUID = -7620367495938104575L;
    /**
     * 任务状态描述字段
     */
    private String taskTypeMemo;
    
    private List<FieldPermissionEntityExt> summary;
    
    
    public String getTaskTypeMemo() {
        return taskTypeMemo;
    }
    
    public void setTaskTypeMemo(String taskTypeMemo) {
        this.taskTypeMemo = taskTypeMemo;
    }
    
    public List<FieldPermissionEntityExt> getSummary() {
        return summary;
    }
    
    public void setSummary(String summary) {
        this.summary = JSONArray.parseArray(summary, FieldPermissionEntityExt.class);
    }
}
